<template>
  <div></div>
</template>

<script>
  export default {
    name: 'PageTum',
    data () {
      return {
        num: 0
      }
    },
    methods: {
      switchTum () {
        wx.redirectTo({
          url: '../pages/addQuestion'
        })
      }
    },
    onShow () {
      this.switchTum()
      this.$root.$mp.page.getTabBar().setData({
        activeIndex: 1 // 对应页面的index
      })
    }
  }
</script>

<style>

</style>
